inspector: Use substring matching in the property list
authorMatthias Clasen <mclasen@redhat.com>
Wed, 15 Jul 2020 15:29:06 +0000 (11:29 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 15 Jul 2020 15:29:06 +0000 (11:29 -0400)
This is convenient for things like "set both hexpand and
vexpand", since you can then search for "expand"

gtk/inspector/prop-list.c

index 5c5a2c5e33da3855f001cdd6a029fc091088b80b..44a3e8ce0b60591666120724d107aa155be877b7 100644 (file)
@@ -114,7 +114,7 @@ gtk_inspector_prop_list_init (GtkInspectorPropList *pl)
   pl->priv = gtk_inspector_prop_list_get_instance_private (pl);
   gtk_widget_init_template (GTK_WIDGET (pl));
   pl->priv->filter = gtk_string_filter_new ();
-  gtk_string_filter_set_match_mode (GTK_STRING_FILTER (pl->priv->filter), GTK_STRING_FILTER_MATCH_MODE_PREFIX);
+  gtk_string_filter_set_match_mode (GTK_STRING_FILTER (pl->priv->filter), GTK_STRING_FILTER_MATCH_MODE_SUBSTRING);
 
   sorter = gtk_string_sorter_new (gtk_cclosure_expression_new (G_TYPE_STRING, NULL,
                                                                0, NULL,